package com.example.tch.case03_16110100521;

/*import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;*/
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class SettingActivity extends AppCompatActivity {
    private SharedPreferences sp;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);

        TextView tv = findViewById(R.id.tv_s_uname);
        sp = getSharedPreferences("setting",MODE_PRIVATE);
        tv.setText(sp.getString("username","sorry"));
    }
}
